home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / ListBoxProxy.cpp < prev    next >
Text File  |  1997-08-07  |  2KB  |  70 lines

  1. /*
  2.  *    File:        ListBoxProxy.cpp
  3.  *    Function:    Proxy for TListBox subclasses.
  4.  *    Written by:    Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1997 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *    Change History (most recent first):
  10.  *
  11.  *         <->     1/22/97    JDJ        Created
  12.  */
  13.  
  14. #include "ListBoxProxy.h"
  15.  
  16. #include <ZView.h>
  17.  
  18.  
  19. // ===================================================================================
  20. //    class CListBoxProxy
  21. // ===================================================================================
  22.  
  23. static TReanimatorRegister<CListBoxProxy> sListBoxRegistrar("TListBox");
  24.  
  25. static TReanimatorRegister<CListBoxProxy> sListBoxProxyRegistrar;
  26.  
  27. //---------------------------------------------------------------
  28. //
  29. // CListBoxProxy::~CListBoxProxy
  30. //
  31. //---------------------------------------------------------------
  32. CListBoxProxy::~CListBoxProxy()
  33. {
  34. }
  35.  
  36.  
  37. //---------------------------------------------------------------
  38. //
  39. // CListBoxProxy::CListBoxProxy
  40. //
  41. //---------------------------------------------------------------
  42. CListBoxProxy::CListBoxProxy(const string& name, TView* superView, const TRect& frame, MCommander* super) : TListBox<int>(name, superView, frame, super)
  43. {
  44.     mCellHeight = 16;                // anything greater than zero will do
  45. }
  46.  
  47.  
  48. //---------------------------------------------------------------
  49. //
  50. // CListBoxProxy::Create                                [static]
  51. //
  52. //---------------------------------------------------------------
  53. MReanimatable* CListBoxProxy::Create(MReanimatable* parent)
  54. {
  55.     return new CListBoxProxy("????", dynamic_cast<TView*>(parent), TRect(0, 0, 75, 75), nil);
  56. }
  57.  
  58.  
  59. //---------------------------------------------------------------
  60. //
  61. // CListBoxProxy::OnDrawCell
  62. //
  63. //---------------------------------------------------------------
  64. void CListBoxProxy::OnDrawCell(TCanvas& canvas, const TRect& cellBounds, const int& item, bool isSelected)
  65. {
  66.     #pragma unused(canvas, cellBounds, item, isSelected)
  67. }
  68.  
  69.  
  70.